using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using ShoppingCart.BL;

public partial class Browse_Controls_ProductDetails_ucProductImgName : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    { 
        int ProductId;
               
        if (!IsPostBack)
        { 
            if(Request["PID"]!=null)
            {
                ProductId=Int32.Parse(Request["PID"].ToString());
                DataSet ds = ProductController.GetProductNameImage(ProductId);
                if (ds.Tables[0].Rows.Count > 0)
                {
                    dlimgname.DataSource = ds;
                    dlimgname.DataBind();
                }
            }    
        }
    }
}
